/*
 * @Descripttion:
 * @version:
 * @Author: 麦冬果果
 * @Date: 2021-03-11 08:38:26
 * @LastEditors: 麦冬果果
 * @LastEditTime: 2021-03-31 13:28:31
 */
package middlewares

import (
	"github.com/gogf/gf/net/ghttp"
)

//跨域处理中间件
func CORS(r *ghttp.Request) {
	r.Response.CORSDefault()
	r.Middleware.Next()
}
